//
//  NSString+Help.h
//  HDFramework
//
//  Created by haidong on 2016/10/13.
//  Copyright © 2016年 haidong. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Help)

/*
 * 字符串判断
 */

+ (BOOL)checkTelNumber:(NSString *)telNumberStr;
+ (BOOL)checkEmail:(NSString *)emailStr;
+ (BOOL)checkIdCard:(NSString *)idCardStr;
+ (BOOL)checkURL:(NSString *)urlStr;

+ (BOOL)checkIsChinese:(NSString *)chineseStr;
- (BOOL)checkIncludeChinese:(NSString *)str;
- (BOOL)checkIsContainEmoji:(NSString *)str;
+ (BOOL)checkPureNumber:(NSString *)str;

+ (NSString *)intTimeToDate:(long long)totalTime format:(NSString *)formatStr;

+ (NSString *)intTimeToCountDown:(long long)totalTime;

+ (NSString *)dataToJsonString:(id)object;

/**
 过滤文本中的html标签
 */
- (NSString *)removeHTML;

+ (CGFloat)heightWithText:(NSString *)text Font:(UIFont *)font andWidth:(CGFloat)width;


@end
